public class h3 {
    public static void main(String[] args) {
        int n=2024;
        for (int i=1949;i<=2049;i++){
            if ((i-n)%12==0) System.out.println(i);
        }
    }
}
